package io.cloud.tec.ant_design_vue_pro.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class FreeServiceRespDTO {
    private String name;
    private String version;
    private String icon;
    private String ip;
    private String port;
    private String userName;
    private String password;
    private String mode;
    private String network;
    private String state;
    private String ext;
    /**
     * 不添加注解：2023-05-03T02:37:42
     *
     * 添加@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")对返回值没有任何影响
     *
     * 添加@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")，返回值按照patter返回
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastStateUpdateTime;
}
